import org.junit.Test;

import java.util.*;

/**
 * @author 35326
 * 2021/3/19 19:07
 * 第一次尝试集合框架中的方法
 */
public class FirstCollectionTest {

	@Test
	public void test1(){
		Collection collection = new ArrayList();
		collection.add(1);
		collection.add(2);
		System.out.println(collection.containsAll(new HashSet()));

		List<Integer> integers = Arrays.asList(1, 2, 1);
		Iterator<Integer> iterator = integers.iterator();
		for (Integer i :
				integers) {
			System.out.println(i);

		}

	}

	@Test
	public void testLinkedList(){
		LinkedList<String> linkedList = new LinkedList<>();
		linkedList.add(0,"1");
	}
}
